<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<title></title>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="../css/admin.css" type="text/css" />

<script src="inc/function.js" type="text/javascript"></script>

<script type="text/javascript">

function CHajax(TagID,UrlStr){ 

	xmlHttp=GetXmlHttpObject();

	if (xmlHttp==null){

  		alert ("您的浏览器不支持AJAX!");

		return false;

	}

	var Url="html.php"+UrlStr+"&sid="+Math.random();

	xmlHttp.onreadystatechange=function(){

		if (xmlHttp.readyState==4){ 

			if (xmlHttp.status==200){

				$(TagID).innerHTML=xmlHttp.responseText;

			}

		}

	}

	xmlHttp.open("GET",Url,true);

	xmlHttp.send(null);

}



var Re,Tid;

function CreateHTMLs(){

	Re=$("ct").innerHTML;

	switch(Re){

	case '开始':

		$("ct").innerHTML="";

		CHajax("ct","?id=1");

		break;

	case '生成网站首页成功！':

		$("ct").innerHTML="";

		$("cts").innerHTML+=Re+"<br />";

		CHajax("ct","?id=2");

		break;	

	case '生成关于我们成功！':

		$("ct").innerHTML="";

		$("cts").innerHTML+=Re+"<br />";

		CHajax("ct","?id=3");

		break;

	case '生成产品中心成功！':

		$("ct").innerHTML="";

		$("cts").innerHTML+=Re+"<br />";

		CHajax("ct","?id=4");

		break;

	case '生成新闻中心成功！':

		$("ct").innerHTML="";

		$("cts").innerHTML+=Re+"<br />";

		CHajax("ct","?id=5");

		break;

 
		case '生成联系我们成功！':

		$("cts").innerHTML+=Re+"<br /><br /><strong>生成所有页面成功！</strong>";

		break;

	}

	

	if (Re=='生成联系我们成功！'){

		clearTimeout(Tid);

	}

	else{

		Tid=setTimeout(CreateHTMLs,1);

	}

}

</script>

</head>

<body>

<div id="container">

	<div class="edit">

		<h1>生成所有页面</h1>

		<div id="ct" style="display:none;">开始</div>

		<div id="cts" style="padding-top:20px; line-height:20px; font-size:14px;"></div>

		<script type="text/javascript">CreateHTMLs();</script>

	</div>

</div>

</body>

</html>